package com.ruoyi.user.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户投诉对象 user_complaints
 * 
 * @author ruoyi
 * @date 2025-10-21
 */
public class UserComplaints extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 投诉ID */
    @Excel(name = "投诉ID")
    private String complaintId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String customerId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 类型 */
    @Excel(name = "类型")
    private Long type;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    private String content;

    /** 证据 */
    @Excel(name = "证据")
    private String evidence;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 处理人 */
    @Excel(name = "处理人")
    private String handlerId;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date handledAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间", readConverterExp = "软=删除")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    public void setComplaintId(String complaintId) 
    {
        this.complaintId = complaintId;
    }

    public String getComplaintId() 
    {
        return complaintId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setEvidence(String evidence) 
    {
        this.evidence = evidence;
    }

    public String getEvidence() 
    {
        return evidence;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setHandlerId(String handlerId) 
    {
        this.handlerId = handlerId;
    }

    public String getHandlerId() 
    {
        return handlerId;
    }

    public void setHandledAt(Date handledAt) 
    {
        this.handledAt = handledAt;
    }

    public Date getHandledAt() 
    {
        return handledAt;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("complaintId", getComplaintId())
            .append("orderId", getOrderId())
            .append("customerId", getCustomerId())
            .append("merchantId", getMerchantId())
            .append("type", getType())
            .append("content", getContent())
            .append("evidence", getEvidence())
            .append("status", getStatus())
            .append("handlerId", getHandlerId())
            .append("handledAt", getHandledAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
